# -*- coding: utf-8 -*-
import scrapy
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings

category = {
    '0':'热门',
    '2':'明星',
    '1760':'头条',
    # '99991':'榜单',
    # '10011':'搞笑',
    # '7':'社会',
    # '10010':'感情',
    # '12':'时尚',
    # '4':'军事',
    # '10007':'美女',
    # '3':'体育',
    # '10005':'动漫',
}
process = CrawlerProcess(get_project_settings())
for i in category :
    process.crawl('guangzhou',i,category[i])

# process.crawl('guangzhou','2')
# process.crawl('guangzhou','3')
process.start()